Repository navigation
Conversation
…13289) verify_import trusted each object's unsigned blob_refs: the reference list only had to be consistent with the carried blob set, so a valid signed document.put citing content A could be paired with decoy bytes B and pass verification, leaving the cited content absent after a "complete" import. Verification now derives each object's content citations from its verified envelope, resolves them by content (BLAKE3 -> SHA-256 blob name) against the carried blobs, and requires the object's references to name exactly the resolved blobs. A cited blob the export does not carry is MissingBlob; references that name anything else are the new CitationBlobMismatch refusal. Regression tests cover the decoy pairing, a missing cited blob, and an extra reference; the honest round-trip and the cross-language produced-sets fixture still verify.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Closing as superseded — collision record. This PR duplicates work that had already landed. Lane WQ claimed #13289 first (2026-11-23T12:56:56Z, comment 7101845383) and merged the same fix via PR #13356 ( Cause of the duplicate, stated plainly: my pre-claim ownership read used Process lesson recorded for the lane briefs: paginated list reads need the |
For #13289 — the hosted export/import verification gap.
Problem
verify_importbuiltreferenced_blobsonly from each object's caller-suppliedblob_refsand checked those names against the carried blob hashes.blob_refsis covered by neither the manifest'sobjects_digestnor the object's envelope signature, so a valid signeddocument.putenvelope citing content A could be paired with unrelated bytes B (named byblob_refs), pass verification, and be reported as a complete import while the cited content A stayed unavailable.Change (
pkgs/id/src/hosted_export.rsonly)verify_importnow derives each object's content citations from its verified envelope (the decode already performed for the signature check;citations_offactored out ofcited_content_hashesso both share one definition), indexes carried blobs by the BLAKE3 citation their bytes resolve, and binds the two: every signed citation must resolve by content to a carried blob (MissingBlobwhen it cannot), and the object'sblob_refsmust name exactly the resolved blobs — otherwise the new typed refusalExportError::CitationBlobMismatch.Verification (laptop route; the fleet-build container lacks the pkgs/id nix toolchain shell)
cargo test --lib hostedinnix develop(pkgs/id): 64 passed / 0 failed, including the three new tests, the honestexport_import_round_trip, the cross-languageproduced_sets_fixture_verifies, and the hosted_ingest round-trips.cargo clippy -p id --lib --no-depsclean;rustfmt --checkclean on the file. (Workspace-wide clippy is red on main for the pre-existing id-store deny-lint debt tracked in id phase-8: P8.8 clippy/lint sweep deferred — ~150 clippy warnings remain with no tracking issue #803/id-store: admission.rs expect() on Mutex locks breaks the clippy gates on main (PR #13156) #13207 — untouched here.)Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.